package task3

import grails.test.mixin.Mock
import grails.test.mixin.TestFor
/**
 * See the API for {@link grails.test.mixin.web.ControllerUnitTestMixin} for usage instructions
 */
@TestFor(OrganizationController)
@Mock([Department, Human, Project])
class OrganizationControllerTests {


    void testTestDep() {
        new Department(name: 'Отдел1').save()

        controller.testDep()
        assertEquals  response.text, 'Отдел1'
    }

}
